Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stay compatible with legacy PHP versions #38

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Stay compatible with legacy PHP versions #38

merged 1 commit into from
Aug 10, 2023

Conversation

FrancoisCapon
Copy link
Contributor

Hi,

I sometimes use the " PentesterLab Free VM - From SQL Injection to Shell" to teach application security, and in June students report that p0wny@shell doesn't work.

In fact, the VM use a legacy PHP version (X-Powered-By: PHP/5.3.3-7+squeeze3) and p0wny@shell v2023.05.10 and above use short array syntax [] introduced in PHP 5.4.

By replacing [] by the old syntax array() the new version works well with old PHP versions 5 (and above of course). It's easier to do as changing the PHP version of the VM 😉.

@cli-ish
Copy link

cli-ish commented Aug 10, 2023

PHP 5.3.x is quite old and should not be used anymore (not supported for 9 years).

But I don't see any disadvantage in merging this, except for worse readability.

@flozz flozz merged commit 9abe92f into flozz:master Aug 10, 2023
@flozz
Copy link
Owner

flozz commented Aug 10, 2023

As there is still old PHP versions in production, I think it is a good idea to be compatible.

Thank you for the PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants